import java.io.*;


public class Depozit 
{
	Delegat l=new Delegat();
	public void adaugaMarfa() throws IOException
	{
		l.adaugaMarfa();
	}
	public void suprimaMarfa() throws NumberFormatException, IOException
	{
		l.suprimaMarfa();
	}
	public void afisareMarfa()
	{
		l.afisareMarfa();
	}
	public static void main(String arg[]) throws NumberFormatException, IOException
	{
		int op;
		Depozit dep=new Depozit();
		BufferedReader tastatura=new BufferedReader(new InputStreamReader(System.in));
		do
		{
		System.out.println("Alegeti optiunea dorita ");
		System.out.println("1 Adauga marfa");
		System.out.println("2 Sterge marfa");
		System.out.println("3 Afisare inventar");
		System.out.print("Optiunea:");
		op=Integer.parseInt(tastatura.readLine()); 
		switch(op)
		{
		case 1:
			dep.adaugaMarfa();
			break;
		case 2:
			dep.suprimaMarfa();
			break;
		case 3:
			dep.afisareMarfa();
			break;
		default:System.out.println("Optiune eronata!");
				break;
		}
		}while(op!=4);
	}
	@SuppressWarnings("unused")
	private void remove(int element) {
		// TODO Auto-generated method stub
		
	}
	
}
